package com.monika.main.system.util.doc;


import java.util.Iterator;

/**
 * @author:whh
 * @date: 2025-05-10 14:41
 * <p>
 *
 *     文档抽象类
 * </p>
 */
public abstract class Document<T extends AutoCloseable,E> implements Iterator<E>, AutoCloseable {

    protected T doc;
    public Document(T doc) {
        this.doc = doc;
    }

    @Override
    public void close() throws Exception {
       doc.close();
    }
}
